Any

open class Any

The root of the Kotlin class hierarchy. Every Kotlin class has Any as a superclass.

Constructors

Any
Link copied to clipboard
fun Any()

Extensions

asDynamic
Link copied to clipboard
inline fun Any?.asDynamic(): dynamic

Reinterprets this value as a value of the /docs/reference/dynamic-type.html.

ensureNeverFrozen
Link copied to clipboard
external fun Any.ensureNeverFrozen()

This function ensures that if we see such an object during freezing attempt - freeze fails and FreezingException is thrown.

hashCode
Link copied to clipboard
inline fun Any?.hashCode(): Int

Returns a hash code value for the object or zero if the object is null.

identityHashCode
Link copied to clipboard
external fun Any?.identityHashCode(): Int

Compute stable wrt potential object relocations by the memory manager identity hash code.

isFrozen
Link copied to clipboard
val Any?.isFrozen: Boolean

Checks if given object is null or frozen or permanent (i.e. instantiated at compile-time).

iterator
Link copied to clipboard
operator fun dynamic.iterator(): Iterator<dynamic>

Allows to iterate this dynamic object in the following cases:

objcPtr
Link copied to clipboard
external fun Any?.objcPtr(): NativePtr
toString
Link copied to clipboard
fun Any?.toString(): String

Returns a string representation of the object. Can be called with a null receiver, in which case it returns the string "null".

fun Any?.toString(): String

Returns a string representation of the object. Can be called with a null receiver, in which case it returns the string "null".

inline fun Any?.toString(): String
unsafeCast
Link copied to clipboard
inline fun <T> Any?.unsafeCast(): T

Reinterprets this value as a value of the specified type T without any actual type checking.

inline fun <T> dynamic.unsafeCast(): T

Reinterprets this dynamic value as a value of the specified type T without any actual type checking.